﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DeviceUnion.FFmpeg.WinForm
{
    public interface IRecorder : IDisposable
    {
        event EventHandler<LogEventArgs> OnCmdOutput;
        void Open();
        void Close();

        void StartRecordDesktop(FFParam param);
        void StartRecordWindow(FFParam param);
        void StartRecordDesktop(string file);
        void StartRecordDesktop(string file,uint duration);
        void StartRecordDesktop(string file, uint duration, string waterMarkStr);
        void StartRecordDesktop(string file, int x, int y, int w, int h);
        void StartRecordWindow(string window, string file);
        void StartRecordWindow(string window, string file, uint duration);
        void StartRecordWindow(string window, string file, uint duration, string waterMarkStr);

        void StopRecord();
    }
}
